package org.hentai.bt.util.field;

import java.lang.annotation.Annotation;

public class FieldAnnotationValue {

    Annotation[] annotations;

    public FieldAnnotationValue(Annotation[] annotations) {
        this.annotations = annotations;
    }

    public FieldAnnotationEntryFactory.FieldEntry getAnnotationValues() {
        for (Annotation annotation : annotations) {
            if (annotation.annotationType().getSimpleName().startsWith("Field")) {
                return FieldAnnotationEntryFactory.getFieldEntry(annotation);
            }
        }

        return null;
    }
}
